package com.academic_system.service.impl;

import com.academic_system.mapper.AcademyDao;
import com.academic_system.service.AcademyService;
import com.academic_system.util.Msg;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
      * @Description 学院管理实现类
      * @create 9:52 2018/5/10
      **/
@Service
public class AcademyImpl implements AcademyService{
    @Autowired
    private AcademyDao academyDao;
    /**
     * @Description 通过学院名称查询学院id
     * @methodName queryacademy_idByacademy_name
     * @returnType int
     * @create 9:46 2018/5/10
     **/
    @Override
    public Msg queryacademy_idByacademy_name(String academy_name) {
         int acadeId=academyDao.queryacademyidByacademy_name(academy_name);
        System.out.println("在impl层查询成功！");
       return  Msg.addData(acadeId,"fajf");

    }
}
